package cn.chengpengper.im.common.domain.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/*@formatter:off*/

/**
 * ____________________
 * < 神兽护体，永无bug! >
 * --------------------
 *
 * @author huchengpeng
 * @version v1.0.0
 * @date 2024/9/8 18:07
 * @description 消息发送结果
 */

/*@formatter:on*/

@Data
@EqualsAndHashCode(callSuper = false)
public class ImSendResult<T> extends TopicMessage {

    private static final long serialVersionUID = 7864062121299242066L;

    /**
     * 消息发送者
     */
    private ImUserInfo sender;

    /**
     * 消息接收者
     */
    private ImUserInfo receiver;

    /**
     * 发送状态
     */
    private Integer code;

    /**
     * 消息内容
     */
    private T data;
}
